<?php

namespace App\Api\Controllers;


use App\Models\BalanceRecord;
use Dingo\Api\Routing\Helpers;
use Illuminate\Routing\Controller;

class BalanceController extends Controller
{
    use Helpers;

    public function balanceDetail()
    {
        $user=$this->auth->user();
        $balanceDetailList=BalanceRecord::where('user_id',$user->id)->orderBy('id','desc')->get();
        return $this->response->array([
            'status_code'=>200,
            'message'=>'数据获取成功',
            'result'=>$balanceDetailList,
        ]);
    }
}
